央视少儿[央].js 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. var rule = {
  2. title:'央视少儿[漫]',
  3. host:'https://api.cntv.cn',
  4. homeUrl: '/lanmu/columnSearch?&fl=&fc=&cid=&p=1&n=500&serviceId=tvcctv&t=json',
  5. // url:'/list/getVideoAlbumList?fyfilter&area=&letter=&n=24&serviceId=tvcctv&t=json',
  6. url: '/NewVideo/getVideoListByColumn?id=fyclass&n=10&sort=desc&p=fypage&mode=0&serviceId=tvcctv',
  7. searchUrl:'',
  8. searchable:0,
  9. quickSearch:0,
  10. class_name: '周末动画片&快乐体验&小小智慧树&智力快车&音乐快递&英雄出少年&快乐大巴&动漫世界&新闻袋袋裤&大风车&七巧板&大手牵小手&智慧树&动感特区&动画大放映&看我 72 变&快乐童行&风车剧场',
  11. class_url:'TOPC1451559836238828&TOPC1451559479171411&TOPC1451559205464876&TOPC1451559756374759&TOPC1451559666055645&TOPC1451559695702690&TOPC1451559161446811&TOPC1451559448233349&TOPC1451559603261584&TOPC1451558929123462&TOPC1451559569040502&TOPC1451558967135492&TOPC1451447359806385&TOPC1451559378830189&TOPC1451559025546574&TOPC1451559131256781&TOPC1628144739712839&TOPC1573528152700717',
  12. filterable: 1,
  13. headers:{
  14. 'User-Agent':'PC_UA'
  15. },
  16. timeout:10000,
  17. play_parse:true,
  18. limit:6,
  19. double:false,
  20. /*
  21. 推荐: $js.toString(() => {
  22. var d = [];
  23. var list = JSON.parse(request(input)).response.docs;
  24. list.forEach(it => {
  25. // 一级标题
  26. let title1 = it.column_name;
  27. // 一级描述
  28. let desc1 = it.channel_name;
  29. // 一级图片URL
  30. let picUrl1 = it.column_logo;
  31. // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 更新至)
  32. let url1 = it.lastVIDE.videoSharedCode + '|' + '' + '|' + it.column_firstclass + '|' + it.column_name + '|' + '' + '|' + it.column_playdate + '|' + it.channel_name + '|' + it.column_brief + '|' + it.column_logo + '|' + '' + '|' + it.lastVIDE.videoTitle;
  33. d.push({
  34. desc : desc1,
  35. title : title1,
  36. pic_url : picUrl1,
  37. url : url1
  38. })
  39. })
  40. setResult(d);
  41. }),
  42. */
  43. 一级: $js.toString(() => {
  44. var d = [];
  45. var list = JSON.parse(request(input)).data.list;
  46. list.forEach(it => {
  47. //一级id
  48. let guid1 = it.guid;
  49. // 一级标题
  50. let title1 = it.title
  51. // 一级描述
  52. let desc1 = it.time;
  53. // 一级图片URL
  54. let picUrl1 = it.image;
  55. // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 集数)
  56. let url1 =it.guid + '|' + it.id + '|' + it.time + '|' + it.title + '|' + it.length + '|' + it.image + '|' + it.focus_date + '|' + it.brief + '|' + it.url + '|' + '' + '|' + MY_CATE;
  57. d.push({
  58. desc : desc1,
  59. title : title1,
  60. pic_url : picUrl1,
  61. guid : guid1,
  62. url : url1
  63. })
  64. })
  65. setResult(d);
  66. }),
  67. 二级 : $js.toString(() => {
  68. let info = input.split("|");
  69. let guid = info[0].replaceAll('https://api.cntv.cn/lanmu/', '');
  70. VOD = {
  71. vod_id: info[1],
  72. vod_name: info[3],
  73. vod_pic: info[5],
  74. type_name: info[2],
  75. vod_year: info[2],
  76. vod_area: info[1],
  77. vod_remarks: 'ƪ(˘⌣˘)ʃ优雅',
  78. vod_director: 'ƪ(˘⌣˘)ʃ优雅',
  79. vod_actor: 'ƪ(˘⌣˘)ʃ优雅',
  80. vod_content: info[7],
  81. vod_play_from: '央视频',
  82. //https://hls.cntv.myalicdn.com//asp/hls/2000/0303000a/3/default/https://api.cntv.cn/lanmu/1a01871d6d5f4d4bbe82b9c62650f100/2000.m3u8
  83. vod_play_url: '立即播放$https://hls.cntv.myalicdn.com//asp/hls/2000/0303000a/3/default/' + guid + '/2000.m3u8'
  84. };
  85. }),
  86. 搜索:'',
  87. }